﻿/*
 * @Author: liuguoyun
 * @Date: 2020-07-17 16:58:37
 * @LastEditTime: 2020-07-17 18:05:11
 * @LastEditors: liuguoyun
 * @FilePath: \undefinedd:\Github\feature-evertDayTask\Assets\_Scripts\Runtime\ViewModel\Converter\IntEqualityConverter.cs
 * @Description: 
 */ 

using System;

namespace UFrame
{
    public class IntEqualityConverter
    {
        public int state;

        public  IntEqualityConverter(){}

        public IntEqualityConverter(int state)
        {
            this.state = state;
        }
        
        public object Convert(object value)
        {
            int b = (int)value;
            return b == state;
        }

        public object ConvertBack(object value)
        {
            return (int)value == state;
        }
    }
}